{"ast":null,"code":"import * as React from 'react';\nimport { DescriptionsContext } from '.';\nimport Cell from './Cell';\nfunction renderCells(items, _ref, _ref2) {\n  var colon = _ref.colon,\n    prefixCls = _ref.prefixCls,\n    bordered = _ref.bordered;\n  var component = _ref2.component,\n    type = _ref2.type,\n    showLabel = _ref2.showLabel,\n    showContent = _ref2.showContent,\n    rootLabelStyle = _ref2.labelStyle,\n    rootContentStyle = _ref2.contentStyle;\n  return items.map(function (_ref3, index) {\n    var _ref3$props = _ref3.props,\n      label = _ref3$props.label,\n      children = _ref3$props.children,\n      _ref3$props$prefixCls = _ref3$props.prefixCls,\n      itemPrefixCls = _ref3$props$prefixCls === void 0 ? prefixCls : _ref3$props$prefixCls,\n      className = _ref3$props.className,\n      style = _ref3$props.style,\n      labelStyle = _ref3$props.labelStyle,\n      contentStyle = _ref3$props.contentStyle,\n      _ref3$props$span = _ref3$props.span,\n      span = _ref3$props$span === void 0 ? 1 : _ref3$props$span,\n      key = _ref3.key;\n    if (typeof component === 'string') {\n      return /*#__PURE__*/React.createElement(Cell, {\n        key: \"\".concat(type, \"-\").concat(key || index),\n        className: className,\n        style: style,\n        labelStyle: Object.assign(Object.assign({}, rootLabelStyle), labelStyle),\n        contentStyle: Object.assign(Object.assign({}, rootContentStyle), contentStyle),\n        span: span,\n        colon: colon,\n        component: component,\n        itemPrefixCls: itemPrefixCls,\n        bordered: bordered,\n        label: showLabel ? label : null,\n        content: showContent ? children : null\n      });\n    }\n    return [/*#__PURE__*/React.createElement(Cell, {\n      key: \"label-\".concat(key || index),\n      className: className,\n      style: Object.assign(Object.assign(Object.assign({}, rootLabelStyle), style), labelStyle),\n      span: 1,\n      colon: colon,\n      component: component[0],\n      itemPrefixCls: itemPrefixCls,\n      bordered: bordered,\n      label: label\n    }), /*#__PURE__*/React.createElement(Cell, {\n      key: \"content-\".concat(key || index),\n      className: className,\n      style: Object.assign(Object.assign(Object.assign({}, rootContentStyle), style), contentStyle),\n      span: span * 2 - 1,\n      component: component[1],\n      itemPrefixCls: itemPrefixCls,\n      bordered: bordered,\n      content: children\n    })];\n  });\n}\nvar Row = function Row(props) {\n  var descContext = React.useContext(DescriptionsContext);\n  var prefixCls = props.prefixCls,\n    vertical = props.vertical,\n    row = props.row,\n    index = props.index,\n    bordered = props.bordered;\n  if (vertical) {\n    return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"tr\", {\n      key: \"label-\".concat(index),\n      className: \"\".concat(prefixCls, \"-row\")\n    }, renderCells(row, props, Object.assign({\n      component: 'th',\n      type: 'label',\n      showLabel: true\n    }, descContext))), /*#__PURE__*/React.createElement(\"tr\", {\n      key: \"content-\".concat(index),\n      className: \"\".concat(prefixCls, \"-row\")\n    }, renderCells(row, props, Object.assign({\n      component: 'td',\n      type: 'content',\n      showContent: true\n    }, descContext))));\n  }\n  return /*#__PURE__*/React.createElement(\"tr\", {\n    key: index,\n    className: \"\".concat(prefixCls, \"-row\")\n  }, renderCells(row, props, Object.assign({\n    component: bordered ? ['th', 'td'] : 'td',\n    type: 'item',\n    showLabel: true,\n    showContent: true\n  }, descContext)));\n};\nexport default Row;","map":{"version":3,"names":["React","DescriptionsContext","Cell","renderCells","items","_ref","_ref2","colon","prefixCls","bordered","component","type","showLabel","showContent","rootLabelStyle","labelStyle","rootContentStyle","contentStyle","map","_ref3","index","props","label","children","itemPrefixCls","className","style","span","key","createElement","Object","assign","content","Row","descContext","useContext","vertical","row","Fragment"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/descriptions/Row.js"],"sourcesContent":["import * as React from 'react';\nimport { DescriptionsContext } from '.';\nimport Cell from './Cell';\nfunction renderCells(items, _ref, _ref2) {\n  let {\n    colon,\n    prefixCls,\n    bordered\n  } = _ref;\n  let {\n    component,\n    type,\n    showLabel,\n    showContent,\n    labelStyle: rootLabelStyle,\n    contentStyle: rootContentStyle\n  } = _ref2;\n  return items.map((_ref3, index) => {\n    let {\n      props: {\n        label,\n        children,\n        prefixCls: itemPrefixCls = prefixCls,\n        className,\n        style,\n        labelStyle,\n        contentStyle,\n        span = 1\n      },\n      key\n    } = _ref3;\n    if (typeof component === 'string') {\n      return /*#__PURE__*/React.createElement(Cell, {\n        key: `${type}-${key || index}`,\n        className: className,\n        style: style,\n        labelStyle: Object.assign(Object.assign({}, rootLabelStyle), labelStyle),\n        contentStyle: Object.assign(Object.assign({}, rootContentStyle), contentStyle),\n        span: span,\n        colon: colon,\n        component: component,\n        itemPrefixCls: itemPrefixCls,\n        bordered: bordered,\n        label: showLabel ? label : null,\n        content: showContent ? children : null\n      });\n    }\n    return [/*#__PURE__*/React.createElement(Cell, {\n      key: `label-${key || index}`,\n      className: className,\n      style: Object.assign(Object.assign(Object.assign({}, rootLabelStyle), style), labelStyle),\n      span: 1,\n      colon: colon,\n      component: component[0],\n      itemPrefixCls: itemPrefixCls,\n      bordered: bordered,\n      label: label\n    }), /*#__PURE__*/React.createElement(Cell, {\n      key: `content-${key || index}`,\n      className: className,\n      style: Object.assign(Object.assign(Object.assign({}, rootContentStyle), style), contentStyle),\n      span: span * 2 - 1,\n      component: component[1],\n      itemPrefixCls: itemPrefixCls,\n      bordered: bordered,\n      content: children\n    })];\n  });\n}\nconst Row = props => {\n  const descContext = React.useContext(DescriptionsContext);\n  const {\n    prefixCls,\n    vertical,\n    row,\n    index,\n    bordered\n  } = props;\n  if (vertical) {\n    return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"tr\", {\n      key: `label-${index}`,\n      className: `${prefixCls}-row`\n    }, renderCells(row, props, Object.assign({\n      component: 'th',\n      type: 'label',\n      showLabel: true\n    }, descContext))), /*#__PURE__*/React.createElement(\"tr\", {\n      key: `content-${index}`,\n      className: `${prefixCls}-row`\n    }, renderCells(row, props, Object.assign({\n      component: 'td',\n      type: 'content',\n      showContent: true\n    }, descContext))));\n  }\n  return /*#__PURE__*/React.createElement(\"tr\", {\n    key: index,\n    className: `${prefixCls}-row`\n  }, renderCells(row, props, Object.assign({\n    component: bordered ? ['th', 'td'] : 'td',\n    type: 'item',\n    showLabel: true,\n    showContent: true\n  }, descContext)));\n};\nexport default Row;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,mBAAmB,QAAQ,GAAG;AACvC,OAAOC,IAAI,MAAM,QAAQ;AACzB,SAASC,WAAW,CAACC,KAAK,EAAEC,IAAI,EAAEC,KAAK,EAAE;EACvC,IACEC,KAAK,GAGHF,IAAI,CAHNE,KAAK;IACLC,SAAS,GAEPH,IAAI,CAFNG,SAAS;IACTC,QAAQ,GACNJ,IAAI,CADNI,QAAQ;EAEV,IACEC,SAAS,GAMPJ,KAAK,CANPI,SAAS;IACTC,IAAI,GAKFL,KAAK,CALPK,IAAI;IACJC,SAAS,GAIPN,KAAK,CAJPM,SAAS;IACTC,WAAW,GAGTP,KAAK,CAHPO,WAAW;IACCC,cAAc,GAExBR,KAAK,CAFPS,UAAU;IACIC,gBAAgB,GAC5BV,KAAK,CADPW,YAAY;EAEd,OAAOb,KAAK,CAACc,GAAG,CAAC,UAACC,KAAK,EAAEC,KAAK,EAAK;IACjC,kBAYID,KAAK,CAXPE,KAAK;MACHC,KAAK,eAALA,KAAK;MACLC,QAAQ,eAARA,QAAQ;MAAA,oCACRf,SAAS;MAAEgB,aAAa,sCAAGhB,SAAS;MACpCiB,SAAS,eAATA,SAAS;MACTC,KAAK,eAALA,KAAK;MACLX,UAAU,eAAVA,UAAU;MACVE,YAAY,eAAZA,YAAY;MAAA,+BACZU,IAAI;MAAJA,IAAI,iCAAG,CAAC;MAEVC,GAAG,GACDT,KAAK,CADPS,GAAG;IAEL,IAAI,OAAOlB,SAAS,KAAK,QAAQ,EAAE;MACjC,OAAO,aAAaV,KAAK,CAAC6B,aAAa,CAAC3B,IAAI,EAAE;QAC5C0B,GAAG,YAAKjB,IAAI,cAAIiB,GAAG,IAAIR,KAAK,CAAE;QAC9BK,SAAS,EAAEA,SAAS;QACpBC,KAAK,EAAEA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